package com.hnhcyy.goods.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.hnhcyy.goods.service.Leibie2Service;

import io.swagger.annotations.ApiOperation;

/**
 * 类别接口类 提供给后台使用
 * @author Administrator
 *
 */
@RestController
@RequestMapping("/leibieAdmin")
public class LeibieAdminApi {
	
	@Autowired
	Leibie2Service leibie2Service;
	
	/**
	 * 获取类别列表
	 * @return
	 * @throws JsonProcessingException
	 */
	@ApiOperation(value = "获取所有类别列表", notes = "获取所有类别列表，用于admin后台")
	@RequestMapping(value = "/listGoodsCategory",method = {RequestMethod.GET,RequestMethod.POST,RequestMethod.PUT})
	public String listGoodsCategory() throws JsonProcessingException{
		
		return leibie2Service.listGoodsCategory();
	}
	
}
